import request from '@/services/baseService';

export default {
  buyOutPage: data => {
    return request(`/hzsx/splitBill/buyOutPage`, data);
  }, rentPage: data => {
    return request(`/hzsx/splitBill/rentPage`, data);
  }, rentDetail: data => {
    return request(`/hzsx/splitBill/rentDetail`, data, 'get');
  }, purchaseExport: data => {
    return request(`/hzsx/splitBill/purchaseExport`, data);
  }, buyOutDetail: data => {
    return request(`/hzsx/splitBill/buyOutDetail`, data, 'get');
  }, paySplitBill: data => {
    return request(`/hzsx/splitBill/paySplitBill`, data, 'get');
  }, rentExport: data => {
    return request(`/hzsx/splitBill/rentExport`, data);
  }, buyOutExport: data => {
    return request(`/hzsx/splitBill/buyOutExport`, data);
  }, purchasePage: data => {
    return request(`/hzsx/splitBill/purchasePage`, data);
  }, purchaseDetail: data => {
    return request(`/hzsx/splitBill/purchaseDetail`, data, 'get');
  }, paySplitBills: data => {
    return request(`/hzsx/splitBill/paySplitBill`, data);
  }, getLedgerRecords: data => {
    return request(`/hzsx/busShop/ledger-records`, data);
  }, getWithDrawRecords: data => {
    return request(`/hzsx/busShop/queryWithDraw`, data);
  }, getBalance: data => {
    return request(`/hzsx/busShop/balance`, data, 'get');
  }, withDraw: data => {
    return request(`/hzsx/busShop/withdraw`, data);
  }, getWithdrawDetail: data => {
    return request(`/hzsx/busShop/queryWithDrawDetail`, data, 'get');
  }
};
